Optimal. Leaf size=410 \[ \frac {2 b^2 C \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{3 d f h}+\frac {2 b^2 \sqrt {-d e+c f} (3 B d f h-2 C (d f g+d e h+c f h)) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {g+h x} E\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{3 d^2 f^{3/2} h^2 \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{d g-c h}}}+\frac {2 \sqrt {-d e+c f} \left (3 a b B d f h^2-3 a^2 C d f h^2-b^2 (3 B d f g h-C (c h (f g-e h)+d g (2 f g+e h)))\right ) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} F\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{3 d^2 f^{3/2} h^2 \sqrt {e+f x} \sqrt {g+h x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.36, antiderivative size = 410, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 53, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.113, Rules used = {1629, 164, 115,
114, 122, 121} \begin {gather*} \frac {2 \sqrt {c f-d e} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} F\left (\text {ArcSin}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {c f-d e}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right ) \left (-3 a^2 C d f h^2+3 a b B d f h^2-\left (b^2 (3 B d f g h-c C h (f g-e h)-C d g (e h+2 f g))\right )\right )}{3 d^2 f^{3/2} h^2 \sqrt {e+f x} \sqrt {g+h x}}+\frac {2 b^2 \sqrt {g+h x} \sqrt {c f-d e} \sqrt {\frac {d (e+f x)}{d e-c f}} (3 B d f h-2 C (c f h+d e h+d f g)) E\left (\text {ArcSin}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {c f-d e}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{3 d^2 f^{3/2} h^2 \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{d g-c h}}}+\frac {2 b^2 C \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{3 d f h} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 114
Rule 115
Rule 121
Rule 122
Rule 164
Rule 1629
Rubi steps
\begin {align*} \int \frac {a b B-a^2 C+b^2 B x+b^2 C x^2}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx &=\frac {2 b^2 C \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{3 d f h}+\frac {2 \int \frac {\frac {1}{2} d \left (3 a b B d f h-3 a^2 C d f h-b^2 C (d e g+c f g+c e h)\right )+\frac {1}{2} b^2 d (3 B d f h-2 C (d f g+d e h+c f h)) x}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{3 d^2 f h}\\ &=\frac {2 b^2 C \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{3 d f h}+\frac {\left (b^2 (3 B d f h-2 C (d f g+d e h+c f h))\right ) \int \frac {\sqrt {g+h x}}{\sqrt {c+d x} \sqrt {e+f x}} \, dx}{3 d f h^2}+\frac {1}{3} \left (3 a b B-3 a^2 C-\frac {b^2 (3 B d f g h-c C h (f g-e h)-C d g (2 f g+e h))}{d f h^2}\right ) \int \frac {1}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx\\ &=\frac {2 b^2 C \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{3 d f h}+\frac {\left (\left (3 a b B-3 a^2 C-\frac {b^2 (3 B d f g h-c C h (f g-e h)-C d g (2 f g+e h))}{d f h^2}\right ) \sqrt {\frac {d (e+f x)}{d e-c f}}\right ) \int \frac {1}{\sqrt {c+d x} \sqrt {\frac {d e}{d e-c f}+\frac {d f x}{d e-c f}} \sqrt {g+h x}} \, dx}{3 \sqrt {e+f x}}+\frac {\left (b^2 (3 B d f h-2 C (d f g+d e h+c f h)) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {g+h x}\right ) \int \frac {\sqrt {\frac {d g}{d g-c h}+\frac {d h x}{d g-c h}}}{\sqrt {c+d x} \sqrt {\frac {d e}{d e-c f}+\frac {d f x}{d e-c f}}} \, dx}{3 d f h^2 \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{d g-c h}}}\\ &=\frac {2 b^2 C \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{3 d f h}+\frac {2 b^2 \sqrt {-d e+c f} (3 B d f h-2 C (d f g+d e h+c f h)) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {g+h x} E\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{3 d^2 f^{3/2} h^2 \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{d g-c h}}}+\frac {\left (\left (3 a b B-3 a^2 C-\frac {b^2 (3 B d f g h-c C h (f g-e h)-C d g (2 f g+e h))}{d f h^2}\right ) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}}\right ) \int \frac {1}{\sqrt {c+d x} \sqrt {\frac {d e}{d e-c f}+\frac {d f x}{d e-c f}} \sqrt {\frac {d g}{d g-c h}+\frac {d h x}{d g-c h}}} \, dx}{3 \sqrt {e+f x} \sqrt {g+h x}}\\ &=\frac {2 b^2 C \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{3 d f h}+\frac {2 b^2 \sqrt {-d e+c f} (3 B d f h-2 C (d f g+d e h+c f h)) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {g+h x} E\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{3 d^2 f^{3/2} h^2 \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{d g-c h}}}+\frac {2 \sqrt {-d e+c f} \left (3 a b B d f h^2-3 a^2 C d f h^2-b^2 (3 B d f g h-c C h (f g-e h)-C d g (2 f g+e h))\right ) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} F\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{3 d^2 f^{3/2} h^2 \sqrt {e+f x} \sqrt {g+h x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 24.17, size = 442, normalized size = 1.08 \begin {gather*} \frac {\sqrt {c+d x} \left (2 b^2 C d^2 f h (e+f x) (g+h x)+\frac {2 b^2 d^2 (3 B d f h-2 C (d f g+d e h+c f h)) (e+f x) (g+h x)}{c+d x}+2 i b^2 \sqrt {-c+\frac {d e}{f}} f h (3 B d f h-2 C (d f g+d e h+c f h)) \sqrt {c+d x} \sqrt {\frac {d (e+f x)}{f (c+d x)}} \sqrt {\frac {d (g+h x)}{h (c+d x)}} E\left (i \sinh ^{-1}\left (\frac {\sqrt {-c+\frac {d e}{f}}}{\sqrt {c+d x}}\right )|\frac {d f g-c f h}{d e h-c f h}\right )+\frac {2 i d h \left (3 a b B d f^2 h-3 a^2 C d f^2 h+b^2 (-3 B d e f h+c C f (-f g+e h)+C d e (f g+2 e h))\right ) \sqrt {c+d x} \sqrt {\frac {d (e+f x)}{f (c+d x)}} \sqrt {\frac {d (g+h x)}{h (c+d x)}} F\left (i \sinh ^{-1}\left (\frac {\sqrt {-c+\frac {d e}{f}}}{\sqrt {c+d x}}\right )|\frac {d f g-c f h}{d e h-c f h}\right )}{\sqrt {-c+\frac {d e}{f}}}\right )}{3 d^3 f^2 h^2 \sqrt {e+f x} \sqrt {g+h x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(2824\) vs.
\(2(364)=728\).
time = 0.12, size = 2825, normalized size = 6.89
method | result | size |
elliptic | \(\frac {\sqrt {\left (d x +c \right ) \left (f x +e \right ) \left (h x +g \right )}\, \left (\frac {2 C \,b^{2} \sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}}{3 d f h}+\frac {2 \left (a b B -C \,a^{2}-\frac {2 C \,b^{2} \left (\frac {1}{2} c e h +\frac {1}{2} c f g +\frac {1}{2} d e g \right )}{3 d f h}\right ) \left (-\frac {e}{f}+\frac {g}{h}\right ) \sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, \EllipticF \left (\sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{\sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}}+\frac {2 \left (B \,b^{2}-\frac {2 C \,b^{2} \left (h f c +d e h +g f d \right )}{3 d f h}\right ) \left (-\frac {e}{f}+\frac {g}{h}\right ) \sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, \left (\left (-\frac {g}{h}+\frac {c}{d}\right ) \EllipticE \left (\sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )-\frac {c \EllipticF \left (\sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{d}\right )}{\sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}}\right )}{\sqrt {d x +c}\, \sqrt {f x +e}\, \sqrt {h x +g}}\) | \(637\) |
default | \(\text {Expression too large to display}\) | \(2825\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.36, size = 921, normalized size = 2.25 \begin {gather*} \frac {2 \, {\left (3 \, \sqrt {d x + c} \sqrt {f x + e} \sqrt {h x + g} C b^{2} d^{2} f^{2} h^{2} + {\left (2 \, C b^{2} d^{2} f^{2} g^{2} + 2 \, C b^{2} d^{2} h^{2} e^{2} + {\left (C b^{2} c d - 3 \, B b^{2} d^{2}\right )} f^{2} g h + {\left (2 \, C b^{2} c^{2} - 3 \, B b^{2} c d - 9 \, {\left (C a^{2} - B a b\right )} d^{2}\right )} f^{2} h^{2} + {\left (C b^{2} d^{2} f g h + {\left (C b^{2} c d - 3 \, B b^{2} d^{2}\right )} f h^{2}\right )} e\right )} \sqrt {d f h} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (d^{2} f^{2} g^{2} - c d f^{2} g h + c^{2} f^{2} h^{2} + d^{2} h^{2} e^{2} - {\left (d^{2} f g h + c d f h^{2}\right )} e\right )}}{3 \, d^{2} f^{2} h^{2}}, -\frac {4 \, {\left (2 \, d^{3} f^{3} g^{3} - 3 \, c d^{2} f^{3} g^{2} h - 3 \, c^{2} d f^{3} g h^{2} + 2 \, c^{3} f^{3} h^{3} + 2 \, d^{3} h^{3} e^{3} - 3 \, {\left (d^{3} f g h^{2} + c d^{2} f h^{3}\right )} e^{2} - 3 \, {\left (d^{3} f^{2} g^{2} h - 4 \, c d^{2} f^{2} g h^{2} + c^{2} d f^{2} h^{3}\right )} e\right )}}{27 \, d^{3} f^{3} h^{3}}, \frac {3 \, d f h x + d f g + c f h + d h e}{3 \, d f h}\right ) + 3 \, {\left (2 \, C b^{2} d^{2} f^{2} g h + 2 \, C b^{2} d^{2} f h^{2} e + {\left (2 \, C b^{2} c d - 3 \, B b^{2} d^{2}\right )} f^{2} h^{2}\right )} \sqrt {d f h} {\rm weierstrassZeta}\left (\frac {4 \, {\left (d^{2} f^{2} g^{2} - c d f^{2} g h + c^{2} f^{2} h^{2} + d^{2} h^{2} e^{2} - {\left (d^{2} f g h + c d f h^{2}\right )} e\right )}}{3 \, d^{2} f^{2} h^{2}}, -\frac {4 \, {\left (2 \, d^{3} f^{3} g^{3} - 3 \, c d^{2} f^{3} g^{2} h - 3 \, c^{2} d f^{3} g h^{2} + 2 \, c^{3} f^{3} h^{3} + 2 \, d^{3} h^{3} e^{3} - 3 \, {\left (d^{3} f g h^{2} + c d^{2} f h^{3}\right )} e^{2} - 3 \, {\left (d^{3} f^{2} g^{2} h - 4 \, c d^{2} f^{2} g h^{2} + c^{2} d f^{2} h^{3}\right )} e\right )}}{27 \, d^{3} f^{3} h^{3}}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (d^{2} f^{2} g^{2} - c d f^{2} g h + c^{2} f^{2} h^{2} + d^{2} h^{2} e^{2} - {\left (d^{2} f g h + c d f h^{2}\right )} e\right )}}{3 \, d^{2} f^{2} h^{2}}, -\frac {4 \, {\left (2 \, d^{3} f^{3} g^{3} - 3 \, c d^{2} f^{3} g^{2} h - 3 \, c^{2} d f^{3} g h^{2} + 2 \, c^{3} f^{3} h^{3} + 2 \, d^{3} h^{3} e^{3} - 3 \, {\left (d^{3} f g h^{2} + c d^{2} f h^{3}\right )} e^{2} - 3 \, {\left (d^{3} f^{2} g^{2} h - 4 \, c d^{2} f^{2} g h^{2} + c^{2} d f^{2} h^{3}\right )} e\right )}}{27 \, d^{3} f^{3} h^{3}}, \frac {3 \, d f h x + d f g + c f h + d h e}{3 \, d f h}\right )\right )\right )}}{9 \, d^{3} f^{3} h^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b x\right ) \left (B b - C a + C b x\right )}{\sqrt {c + d x} \sqrt {e + f x} \sqrt {g + h x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {-C\,a^2+B\,a\,b+C\,b^2\,x^2+B\,b^2\,x}{\sqrt {e+f\,x}\,\sqrt {g+h\,x}\,\sqrt {c+d\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________